package cn.zjutleo.village_server.service;

import cn.zjutleo.village_server.entity.EchartsRepairApplyData;
import cn.zjutleo.village_server.entity.ViewDispatchRepairInfo;
import cn.zjutleo.village_server.mapper.ViewDispatchRepairInfoMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: 张坤
 * @DateTime: 2022/1/13 23:04
 * @Description: 该类用于 TODO
 */
@Service
public class ViewDispatchRepairInfoService {
    @Resource
    ViewDispatchRepairInfoMapper viewDispatchRepairInfoMapper;

    public ViewDispatchRepairInfo selectViewDispatchRepairInfo(Integer ra_id){
        return viewDispatchRepairInfoMapper.selectViewDispatchRepairInfo(ra_id);
    }


    public List<ViewDispatchRepairInfo> selectAll(){
        return viewDispatchRepairInfoMapper.selectAll();
    }

    public List<String> selectAddress(String fuzzySearch){
        return viewDispatchRepairInfoMapper.selectAddress(fuzzySearch);
    }

    public List<EchartsRepairApplyData> selectRepairApplyDataByAddress(String address){
        return viewDispatchRepairInfoMapper.selectRepairApplyDataByAddress(address);
    }
}
